<?php
	/*
	 * 百合网自动注册脚本
	 * 
	 */
	include_once dirname(dirname(__FILE__))."/include/common.inc.php";
	include_once dirname(dirname(__FILE__))."/baihe/function.baihe.php";
	$global_site = "baihe";
	
	//自动注册百合网id
	$new_baihe_id = registerBaiheId();
	if ($new_baihe_id) {
		printlog("success!! -- register baihe id success, new id : $new_baihe_id", "register");
		//自动保存新注册的id
		if(saveBaiheId($new_baihe_id)){
			printlog("success!! -- id $new_baihe_id saved into table success", "register");
		}
		else{
			printlog("fail!! -- id $new_baihe_id saved into table error", "register");
		}
	}
	else{
		printlog("fail!! -- register baihe id error ... ", "register");
	}
	

?>